import Home from '../pages/Home'
import Detail from '../pages/Detail'
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'

const BaseRouter = () => (
    <Router basename='/'>
        <Routes >
            <Route path="*" element={<Navigate to="/home" />}></Route>
            <Route path='/home' element={<Home />}></Route>
            <Route path='/detail' element={<Detail />}></Route>
        </Routes>
    </Router>
)

export default BaseRouter